<%--
  Created by IntelliJ IDEA.
  User: hasee
  Date: 2021/5/31
  Time: 21:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style type="text/css">
        table{
            width: 600px;
        }
    </style>
</head>
<body>
        <h1 align="center">九九口诀表</h1>
        <table align="center">
        <%--练习一：在jsp页面中输出九九乘法口诀表--%>
        <%
            for (int i = 1; i <=9 ; i++) { %>
            <tr>
                <%
                for (int j = 1; j <=i ; j++) {
                %>
                <td>  <%=j+"X"+i+"="+(i*j)%></td>

                <%
                    }
                %>
            </tr>
        <%
            }
        %>
</table>
</body>
</html>
